home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Telecommunications / Updates⁄New / MicroPhone 2 Scripts / ChatMP2 / Read Me < prev    next >
Encoding:
Text File  |  1988-06-10  |  4.1 KB  |  94 lines  |  [TEXT/ttxt]

  1. Notes on ‘Conversation’ scripts:
  2.  
  3. These scripts were written with CompuServe’s CB simulator in mind,
  4. but should work for any situation were two, or more people are
  5. chatting over a network.
  6.  
  7. The scripts take advantage of a VT102 feature called ‘scroll
  8. regions.’ A scroll region subdivides the VT102 screen into a smaller,
  9. scrolling window. It is not a graphical window in the
  10. Macintosh sense. Instead it is an area that can accept text, and
  11. scroll it independently of the rest of the VT102 screen.
  12.  
  13. These scripts use two regions of the screen. One acts as the
  14. ‘conversation’ region, the other is the ‘keyboard’ region. The
  15. VT102 can only have one scroll region on the screen at a time, so
  16. what these scripts do is constantly create, and re-create the two
  17. different regions as needed.
  18.  
  19. The ‘conversation’ region is the top 18 lines of the screen. All
  20. characters arriving at the serial port are sent to this region. Once
  21. the region fills up, it will scroll up for the next line that arrives.
  22. Text that scrolls off the top of the ‘conversation’ region scrolls
  23. into MicroPhone’s in-memory page buffer.
  24.  
  25. The ‘keyboard’ region is where all keystrokes from the keyboard go. It
  26. occupies lines 22 to 24. It also scrolls, but the lines that scroll
  27. off the top, do not go into the page buffer.
  28.  
  29. To exit the script, either press the ‘Esc’ key, or click ‘Abort Script’
  30. in the terminal window. Pressing ‘Esc’ will terminate the script, but
  31. allow it to restore the terminal window, and settings. Aborting the
  32. script will leave the terminal window with a active scroll region.
  33.  
  34.  
  35.  
  36. Brief note about scripting and terminal emulation:
  37.  
  38. When a script is running, characters arriving through the serial port
  39. are gathered and placed in the terminal screen only when the following
  40. script commands are encountered in the script:
  41.  
  42.     Wait...
  43.     When...
  44.  
  45. If you build a repeat until loop that never calls one of these commands,
  46. then the terminal screen is never updated! It is possible to use the
  47. ‘NEXTCH’ function followed by the ‘Send Local to Screen’ command. My
  48. original attempt at this did just that, but I found that the best
  49. possible speed I could get was 150 bps. The build in terminal handling
  50. is far more effiecent than a script equivalent.
  51.  
  52.  
  53.  
  54. Areas for improvement:
  55.  
  56. o   When using this with CIS CB simulator you will probably want to turn
  57.     remote echo off. Otherwise, what you type appears not only in the
  58.     ‘keyboard’ region, but in the ‘conversation’ region as well. The CB
  59.     command to do this is: “/noecho”. When using this in a non-CB setting
  60.     you may want to have the receiver echo if possible, or turn local
  61.     echo on in MicroPhone. The reason is, so that you will have a record
  62.     of your words saved into page memory via the ‘conversation’ region.
  63.  
  64. o   All keystrokes not only go immediately to the ‘keyboard’ region, but
  65.     also straight to the serial port. This means the receiving party
  66.     gets to watch you make mistakes. It should be fairly easy to add the
  67.     ability to build-up the line in a string, then send when CR is
  68.     pressed, or 80 characters reached. This allows you edit a line
  69.     before sending it.
  70.  
  71. o   The Mac 512E keyboard does not have an ‘Esc’ key. MicroPhone automat-
  72.     ically interpets the ‘~’ key as an ‘Esc’. If this is a problem,
  73.     change the script to watch for a different keystroke.
  74.  
  75. o   There were tradeoffs made for speed. Having more intelligence makes
  76.     the scripts run slower. Changing the ‘Wait Sixtieths 20’ to a larger
  77.     value increases throughput for the incoming characters, but slows
  78.     down initial keyboard response. Decreasing it improves the keyboard
  79.     response, but at the expense of the incoming text throughput.
  80.  
  81. o   So far this script has only been tested at 1200 baud on CIS’s CB
  82.     simulator. In that setting, it makes no sense to run faster than
  83.     1200 baud anyhow. For a Mac-to-Mac connection, faster baud rates
  84.     maybe in use (ie, file transfers interspersed with chatter). What
  85.     the top speed of the scripts are I don’t know, but I doubt anyone
  86.     will be needs to read, let alone type, faster than 1200 baud!
  87.  
  88.  
  89. Dave Newman
  90. Software Ventures Corp.
  91. CIS [76012,3707]
  92. UUCP: david_alan_newman@cup.portal.com
  93. (415) 644-3232....voice, 9am to 5pm
  94.